﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace VoiceTestPlatform
{
    public class ViewModelBase : NotifyObject
    {
        protected IWindowsService WindowsService;

        public ViewModelBase()
        {
            CreateWindowsService();
        }

        protected virtual void CreateWindowsService()
        {
            WindowsService = new DefaultWindowsService();
        }

        public EventHandler RequestCloseHandler;

        protected void RequestClose()
        {
            if (RequestCloseHandler!= null)
            {
                RequestCloseHandler(this, EventArgs.Empty);
            }
        }
    }
}
